<template>
  <div class="menuBody">
    <group title="菜单">
      <cell @click.prevent.native="go('外廓',{jyxm: 'M1'})" title="外廓"  is-link></cell>
      <cell @click.prevent.native="go('整备质量',{jyxm: 'Z1'})" title="整备质量" is-link></cell>
      <cell @click.prevent.native="goSearch('外廓查询',{jyxm: 'M1'})" title="外廓查询" is-link></cell>
      <cell @click.prevent.native="goSearch('整备质量查询',{jyxm: 'Z1'})" title="整备质量查询" is-link></cell>
    </group>
  </div>
</template>

<script>
  // import Zimg from "./zimg";
  import {XButton} from 'vux'

  export default {
    name: "Menu",
    components: {XButton},
    methods: {
      go(title, param) {
        this.$store.commit('setTitle', title);
        this.$store.commit('setCarInfo', param);
        this.$router.push('/car/List');
      },
      goSearch(title, param) {
        this.$store.commit('setTitle', title);
        this.$store.commit('setSearch', param);
        this.$router.push('/car/searchList');
      }
    },
    created() {
      this.$store.commit('setTitle', '菜单');
    }
  }
</script>

<style scoped lang="less">
  @import '~vux/src/styles/1px.less';

</style>
